<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <title>支付宝即时到账交易接口接口</title>
</head>
<body>
<php>

    require_once("__ROOT__/simplewind/Library/Org/Alipay/alipay.config.php");
    require_once("__ROOT__/simplewind/Library/Org/Alipay/lib/alipay_submit.class.php");

    $out_trade_no = $_POST['WIDout_trade_no'];

    $subject = $_POST['WIDsubject'];

    $total_fee = $_POST['WIDtotal_fee'];

    $body = $_POST['WIDbody'];

    $parameter = array(
    "service"       => $alipay_config['service'],
    "partner"       => $alipay_config['partner'],
    "seller_id"  => $alipay_config['seller_id'],
    "payment_type"	=> $alipay_config['payment_type'],
    "notify_url"	=> $alipay_config['notify_url'],
    "return_url"	=> $alipay_config['return_url'],

    "anti_phishing_key"=>$alipay_config['anti_phishing_key'],
    "exter_invoke_ip"=>$alipay_config['exter_invoke_ip'],
    "out_trade_no"	=> $out_trade_no,
    "subject"	=> $subject,
    "total_fee"	=> $total_fee,
    "body"	=> $body,
    "_input_charset"	=> trim(strtolower($alipay_config['input_charset']))
    );


    $alipaySubmit = new AlipaySubmit($alipay_config);
    $html_text = $alipaySubmit->buildRequestForm($parameter,"get", "确认");
    echo $html_text;

</php>
</body>
</html>